from hcsr04 import HCSR04
import time
sensor=HCSR04(trigger_pin=0,echo_pin=1)

while True:
    print(sensor.distance_cm())
    time.sleep(1)